package com.sc.nft.task;

import com.sc.nft.feign.SmsFeignClient;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
@Slf4j
public class SmsHandlerTask {

    private final SmsFeignClient smsFeignClient;

    /**
     * 定时处理短信发送状态
     */
    @XxlJob("smsHandler")
    public void smsHandler()  {
        smsFeignClient.getReport();
    }
}
